# setLastStateID attribute

The setLastStateID attribute specifies the number of states for the object. This number does not include the error state, if any. For the display list selector, this attribute specifies the number of displays to list.

The multistateButton, multistateIndicator, listIndicator, symbolIndicator, controlListSelector, pilotedControlListSelector and displayListSelector graphic object elements contain this attribute.

FactoryTalk View equivalent: NumberOfStates

## See also

setLastStateID attribute syntax

Push button objects: multistateButton object